const path = require('path');
module.exports = {
	entry: "./src/main.js",
	output: {
		path: path.resolve(__dirname, "dist"),
		filename: "common.js" ,
		publicPath : "dist"
	},
	module: {
		rules: [{
			test: /\.js$/,
			exclude: /(node_modules|bower_components)/,
			use: {
				loader: 'babel-loader',
				options: {
					presets: ['es2015']
				}
			}
		}]
	}, 
	resolve : {
		alias :  {
			"vue$" : "vue/dist/vue.esm.js"
		}
	}
}
